/*用循环来计算逢7过   遇到7或者是7的倍数，跳过
* 2023/3/30
* 夏梓豪*/


package test_循环高级练习;

public class test1 {
    public static void main(String[] args) {
        int counter = 0;
        for (int i = 0; i <= 100 ; i++) {
            if (i % 7 == 0){
                System.out.println("过");
                counter++;
                continue;
            }
            System.out.println(i);

        }
        System.out.println("总共有"+counter+"个7或7的倍数");
    }
}
